package com.spyfool.hotdemo;

import android.app.Application;
import android.content.Context;


public class AppContext extends Application {

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        try {
            //将修复dex文件放在 sd根目录/Android/data/com.spyfool.hotdemo/files/data目录下
            //此处为进行权限判断，6.0及以后的机型需要判断读写权限
            HotFixUtil.onLineFix(this,getExternalFilesDir("data"));
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (NoSuchFieldException e) {
            e.printStackTrace();
        }
    }
}
